//****************************************************************
//  Book2.java   Author: Lewis/Loftus
//
//  Represents a book. Used as the parent of a derived class to
//  demonstrates inheritance and the use of the super reference.
//****************************************************************
  
public class Book2
{
    protected int pages;

    //-------------------------------------------------------------
    //  Constructor: Sets up the book with the specified number of
    //  pages.
    //-------------------------------------------------------------
    public Book2(int numPages)
    {
        pages = numPages;
    }

    //--------------------------------------------------------------
    //  Pages mutator.
    //--------------------------------------------------------------
    public void setPages(int numPages)
    {
        pages = numPages;
    }

    //--------------------------------------------------------------
    //  Pages accesstor.
    //--------------------------------------------------------------
    public int getPages()
    {
       return pages;
    }
}
